/**
 * Created by zby on 2018/3/25.
 */
public class Pillar {
    Circle bottom;
    double height;

    Pillar(Circle bottom, double height) {
        this.bottom = bottom;
        this.height = height;
    }

    public double getVolum() {
        return bottom.getArea() * height;
    }
}
